
<?php

$_D->DTime_start($debug);
include_once($FOLDER_PATH_PHP . "/class/class_list.php");

$list[$layer_id] = new $CLASS_NAME(); //생성자



if (!$num) {
    $count = 20;
} else {
    $count = $num;
}
if (!$order_by) {
    $order_by = "user_num";
}
if (!$page) {
    $page = 0;
}

$init_arr["count"] = $count;
$init_arr["table"] = $TABLE;
$init_arr["category"] = $category;
$init_arr["key_search"] = $key_search;
$init_arr["key_search_field"] = $key_search_field;
$init_arr["page"] = $page;
$init_arr["layer_id"] = $layer_id;
$init_arr["bbs_path"] = $BBS_PATH;
$init_arr["order_by"] = $order_by;

$list[$layer_id]->init($init_arr); //초기화



switch ($bbs_mode) {
    case "join":
        include("$FOLDER_PATH_PHP/join.php");
        break;
    case "join_ok":
        include("$FOLDER_PATH_PHP/join_ok.php");
        break;
    case "join_end":
        include("$FOLDER_PATH_PHP/join_end.php");
        break;
    case "id_check_ok":
        include("$FOLDER_PATH_PHP/id_check_ok.php");
        break;
    case "nickname_check_ok":
        include("$FOLDER_PATH_PHP/nickname_check_ok.php");
        break;
    case "view":
        include("$FOLDER_PATH_PHP/view.php");
        echo"<br>";
        include("$FOLDER_PATH_PHP/list.php");
        echo"<script  language='JavaScript' charset='utf-8'>$('#listCount').val('$count');</script>";

        break;
    case "mod":
        include("$FOLDER_PATH_PHP/mod.php");
        break;
    case "mod_ok":
        include("$FOLDER_PATH_PHP/mod_ok.php");
        break;
    case "re":
        include("$FOLDER_PATH_PHP/write.php");
        break;
    case "re_ok":
        include("$FOLDER_PATH_PHP/write_ok.php");
        break;
    case "del":
        include("$FOLDER_PATH_PHP/del_ok.php");
        break;
    case "all_del_ok":
        include("$FOLDER_PATH_PHP/all_del_ok.php");
        break;
    case "all_move_ok":
        include("$FOLDER_PATH_PHP/all_move_ok.php");
        break;
    default:
        include("$FOLDER_PATH_PHP/list.php");
        echo"<script  language='JavaScript' charset='utf-8'>$('#listCount').val('$count');</script>";

        break;
}


